package demo2;

public class Derived extends Base {
    public int a=100;
    public int c=3 ;
    public void testDerived(){
        System.out.println("调用子类中的方法");
    }
    public void testBase(){
        System.out.println("调用子类中方法");
    }
    public void method1(){
        testDerived();
        testBase();


    }

    public void method(){
        System.out.println("父类中的a："+super.a);
        System.out.println(this.a );
        System.out.println(this.b );
        System.out.println(this.c );

    }

}
